package A02practicemulti;

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog(1,"white");
        Cat cat = new Cat(2,"black");
        Person p1=new Person("老李",30);
        Person p2=new Person("老王",40);
        p1.keepPet(dog);
        p2.keepPet(cat);
    }
}
